//
//  BKUserNumRecordViewCell.m
//  bestkeep
//
//  Created by windCould on 16/11/16.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKUserNumRecordViewCell.h"
#import "BKMyCommon.h"

@interface BKUserNumRecordViewCell ()

@property (nonatomic,strong)UILabel * titleLabel;


@end


@implementation BKUserNumRecordViewCell

+(instancetype)cellWithTaleview:(UITableView *)tableview
{
    static NSString * cellID = @"UserNumRecordViewCell";
    BKUserNumRecordViewCell * cell = [tableview dequeueReusableCellWithIdentifier:cellID];
    if (!cell) {
        
        cell = [[BKUserNumRecordViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
    }
    
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}



-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier: reuseIdentifier ];
    if (self) {
        
        [self setUpViews];
        
    }
    
    return self;
}

-(void)setUpViews
{
    _titleLabel = [UILabel new];
    _titleLabel.textColor = [UIColor grayColor];
    _titleLabel.font = UIFontCustom(16);
    _titleLabel.backgroundColor = [UIColor whiteColor];
    [self addSubview:_titleLabel];

    [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.mas_equalTo(self.mas_top).offset(0);
        make.left.mas_equalTo(self.mas_left).offset(55);
        make.right.mas_equalTo(self.mas_right).offset(0);
        make.bottom.mas_equalTo(self.mas_bottom).offset(0);
    }];
    
    

}

-(void)setTitleStr:(NSString *)titleStr
{
    _titleStr = titleStr;
    _titleLabel.text = _titleStr;
}

@end
